﻿//
// Created: 2018/12/15
// Author: chenqiang
//
using System.Data.Entity;
using System.Data.Entity.ModelConfiguration;
using Model.ZXBuiness;

namespace Model.ZXBuiness.Map
{
    internal  class ZXOrderFenRunInfoMap:EntityTypeConfiguration< ZXOrderFenRunInfo >    
    {
        public ZXOrderFenRunInfoMap()
        {
             this.ToTable("ZX_Order_FenRunInfo");
             this.HasKey(i => new { i.OrderFengyunId });
             this.Property(i => i.OrderFengyunId).HasColumnName("OrderFengyunId");                     
             this.Property(i => i.UserId).HasColumnName("UserId");                     
             this.Property(i => i.ProductId).HasColumnName("ProductId");                     
             this.Property(i => i.ProductName).HasColumnName("ProductName");                     
             this.Property(i => i.OrderId).HasColumnName("OrderId");                     
             this.Property(i => i.OrderFenRunMoney).HasColumnName("OrderFenRunMoney");                     
             this.Property(i => i.P1money).HasColumnName("P1money");                     
             this.Property(i => i.P2money).HasColumnName("P2money");                     
             this.Property(i => i.P3money).HasColumnName("P3money");                     
             this.Property(i => i.P4money).HasColumnName("P4money");                     
             this.Property(i => i.P5money).HasColumnName("P5money");                     
             this.Property(i => i.P6money).HasColumnName("P6money");                     
             this.Property(i => i.P7money).HasColumnName("P7money");                     
             this.Property(i => i.P8money).HasColumnName("P8money");                     
             this.Property(i => i.P9money).HasColumnName("P9money");                     
             this.Property(i => i.CreateTime).HasColumnName("CreateTime");                     
             this.Property(i => i.Creator).HasColumnName("Creator");                     
             this.Property(i => i.Remarks).HasColumnName("Remarks");                     
             this.Property(i => i.State).HasColumnName("State");                     
        }   
    }
    
     public static class ZXOrderFenRunInfoMapExtensions
    {
        public static void UserZXOrderFenRunInfoMap(this DbModelBuilder pModelBuilder)
        {
            pModelBuilder.Configurations.Add(new ZXOrderFenRunInfoMap());
        }
    }
}